package com.xs.shop.marketing.feign.api;

import com.xs.shop.common.PageResult;
import com.xs.shop.common.Result;
import com.xs.shop.marketing.model.vo.CouponInfoVO;
import com.xs.shop.marketing.model.vo.CouponPageQueryVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@Component
@FeignClient(name="shop-marketing",contextId = "shop-marketing")
public interface MarketingClient {
    @GetMapping("/coupon/getCouponInfoList")
    public Result<List<CouponInfoVO>> getCouponInfoList();
//    @RequestParam("couponId") Long couponId

    @GetMapping("/coupon/deleteMemberCoupon")
    public Result<Boolean> deleteMemberCoupon();

    @GetMapping("/pointLog/createPointLogWhenCheckOut")
    public Result<Boolean> createPointLogWhenCheckOut(
            @RequestParam("value") Integer value,
            @RequestParam("status") Integer status,
            @RequestParam("intro") String intro);
}
